package objects;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Monkey on 2017/3/7.
 * 科室信息
 */

public class Section implements Parcelable {

    private String KSDM;//病区代码
    private String PYDM;//拼音代码
    private String SJKS;//上级科室
    private String KSMC;//科室名称

    public Section(String arg0, String arg1, String arg2, String arg3) {
        KSDM = arg0;
        PYDM = arg1;
        SJKS = arg2;
        KSMC = arg3;
    }

    public Section() {
    }

    protected Section(Parcel in) {
        KSDM = in.readString();
        PYDM = in.readString();
        SJKS = in.readString();
        KSMC = in.readString();
    }

    public static final Creator<Section> CREATOR = new Creator<Section>() {
        @Override
        public Section createFromParcel(Parcel in) {
            return new Section(in);
        }

        @Override
        public Section[] newArray(int size) {
            return new Section[size];
        }
    };

    public String getKSDM() {
        return KSDM;
    }

    public void setKSDM(String KSDM) {
        this.KSDM = KSDM;
    }

    public String getPYDM() {
        return PYDM;
    }

    public void setPYDM(String PYDM) {
        this.PYDM = PYDM;
    }

    public String getSJKS() {
        return SJKS;
    }

    public void setSJKS(String SJKS) {
        this.SJKS = SJKS;
    }

    public String getKSMC() {
        return KSMC;
    }

    public void setKSMC(String KSMC) {
        this.KSMC = KSMC;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(KSDM);
        parcel.writeString(PYDM);
        parcel.writeString(SJKS);
        parcel.writeString(KSMC);
    }
}
